/**********************************************************/
/*------------------------代码结构-------------------------*/
/*全局                                                    */
/*框架                                                    */
/*  header                                               */
/*  nav                                                  */
/*  bottom-bar                                           */
/*  components                                           */
/*主体部分                                                */
/*  section.part-1                                       */
/*媒体查询                                                */
/*********************************************************/

/*全局*/
a{
    color: inherit;
    text-decoration: none;
}
body{
    position: relative;
}
li{
    list-style: none;
}

/************************************************************/
/*                                                          */
/*                      框架部分代码                          */
/*                                                          */
/************************************************************/
header{
    background-size: cover;
    background-position: 40% center;
    position: relative;
}
header h1{
    font-size: 150%;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    line-height: 3;
    text-align: center;
}
header .self-info{
    padding: 0 1em;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    color: rgba(255,255,255,.9);
    font-size: 1.2em;
    z-index: 999;
}
/*个人信息hover*/
header .self-info .hover-box{
    color: #959597;
    font-size: 1.1em;
    position: absolute;
    top: 100%;
    right: 0;
    width: 120%;
    pointer-events: none;
    background-color: rgba(255,255,255,.7);
    list-style: none;
    opacity: 0;
}
header .self-info .hover-box li{
    margin: .5em 1em;
}
header .self-info .hover-box img{
    width: 1em;
    height: 1em;
    object-fit: cover;
}
header .self-info .hover-box img,header.self-info .hover-box span{
    vertical-align: middle;
}
header .self-info:hover .hover-box{
    opacity: 1;
    pointer-events: initial;
}
/**************/


header .self-info .portrait{
    width: 1.5em;
    height: 1.5em;
    object-fit: cover;
}
header .self-info *{
    vertical-align: middle;
}
nav{
    color: #6e6e6e;
    background-color: #f5f5f5;
}
nav>ul{
    display: flex;
}
nav>ul>li{
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    border: 1px solid #ececec;
    padding: 1em .5em;
    display: inline-flex;
    justify-content: center;
}
.nav__title{
    padding-right: 1em;
}
.nav__content{
    padding-left: 1em;
}
.switcher.disabled .switcher__on,.switcher.disabled .switcher__off{
    pointer-events: none;
}
.nav__content.switcher:not([class~=on]) .switcher__off{
    color: #f96989;
}
.nav__content.switcher.on .switcher__on{
    color: #5ccbbb;
}






.bottom-bar{
    color: rgba(255,255,255,.7);
    line-height: 2;
    white-space: nowrap;
    display: flex;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}
.bottom-bar__left,.bottom-bar__right{
    padding: .3em 2em;
    text-align: center;
    position: relative;
    transition-property: flex-grow , color;
    transition-duration: .6s;
    transition-timing-function: ease-out;
}
.bottom-bar__right{
    color: transparent;
}
.bottom-bar__left:after{
    content: "";
    position:absolute;
    left: 100%;
    width: 0;
    height: 0;
    top: 0;

    transition-delay: .3s;
    transition-property: border;
    transition-duration: .3s;
    transition-timing-function: linear;
}
.bottom-bar__right:before{
    content: "";
    position:absolute;
    right: 100%;
    width: 0;
    height: 0;
    top: 0;

    transition-property: border;
    transition-delay: 0s;
    transition-duration: .3s;
    transition-timing-function: linear;
}
.bottom-bar.active .bottom-bar__left{
    flex-grow: 1;
    color: transparent;
}
.bottom-bar.active .bottom-bar__right{
    flex-grow: 0;
    color: initial;
}
.bottom-bar__right{
    flex-grow: 1;
}
.bottom-bar.active .bottom-bar__left:after{
    transition-delay: 0s;
}
.bottom-bar.active .bottom-bar__right:before{
    transition-delay: .3s;
}
.bottom-bar__left.clickable,.bottom-bar__right.clickable{
    cursor: pointer;
}


.popup{
    position: fixed;
    left: calc(50% - 200px);
    top: calc(100px);
    width: 400px;
    padding: 2em 4em;
    background-color: rgba(255,255,255,.8);
    border: 2px solid rgb(160,160,160);
    border-radius: 10px;
}
.popup h1{
    text-align: center;
    font-size: 1.5em;
    font-weight: normal;
    padding-bottom: 1em;
}
.popup .button-group{
    margin: 1em;
    display: flex;
    justify-content: space-around;
}
.popup #popup__close,.popup #popup__submit{
    display: block;
    width: 2em;
    height: 2em;
    background-size: contain;
}
#popup__close:hover,#popup__submit:hover{
    cursor: pointer;
}
#popup__close{
    background-image: url("../image/cancel.png");
}
#popup__submit{
    background-image: url("../image/right.png");
}
#popup__introduce,#popup__message{
    width: 100%;
    height: 50px;
}
.popup .hover-icon{
    width: 2em;
    height: 2em;
    position: absolute;
    left: calc(50% - 1em);
    top: -1em;
    background-image: url("../image/icon_popup_add.png");
    background-size: contain;
}






.switcher{
    display: inline-flex;
}
.switcher__on,.switcher__off{
    margin: 0 .3em;
    flex-grow: 1;
}
.drag-box{
    position: relative;
}
.drag-box__container{
    z-index: 2;
    color: #d0d0d0;
    padding-bottom: .5em;
    background-color: #f5f5f5;
    text-align: center;
    width: 100%;
    position: absolute;
    top: 100%;
    opacity: 0;
    pointer-events: none;

    transition-duration: .2s;
    transition-property: opacity;
}
.drag-box__item{
    position: relative;
    transition-duration: .1s;
    transition-property: background;
}
.drag-box__item a{
    padding: .5em 0;
    display: block;
}
.drag-box__item:hover{
    background-color: rgba(255,255,255,.5);
}
.drag-box__bottom-bar{
    display: block;
    padding: 1em 0;
}
.drag-box:hover .drag-box__container{
    opacity: 1;
    display: block;
    pointer-events: initial;
}
.drag-box.disabled{
    pointer-events: none;
}

.drag-box__item.on{
    color: rgb(255,209,98);
}
.drag-box__item.on:after{
    content: "";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-color: rgb(255,209,98);
    border-radius: 50%;
}

/************************************************************/
/*                                                          */
/*                  主体从这里开始                             */
/*                                                          */
/*************************,***********************************/
.page-1.hidden,.page-2.hidden{
    display: none;
}




.page-1{
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.page-1 .row1{
    color: white;
    flex-grow: 1;
    display: flex;
    width: 100%;
}
.page-1 .row2{
    flex-basis: 150px;
    flex-shrink: 0;
}
.page-1 .row1 .left{
    flex-basis: 300px;
    flex-shrink: 0;
    position: relative;
}
.page-1 .row1 .right{
    flex-basis: 300px;
    flex-shrink: 0;
    padding: 0 1em;
    box-sizing: border-box;
}
.page-1 .row1 .middle{
    text-align: center;
    flex-grow: 1;
    object-fit: contain;
}
ul.tab-switcher__title{
    display: flex;
    text-align: center;
    position: absolute;
    left: 0;
    width: 100%;
}
ul.tab-switcher__title>li{
    /*background-color: rgb(88,124,165);*/
    flex-grow: 1;
    flex-basis: 0;
    padding: .5em 0;
}
ul.tab-switcher__title>li.active{
    /*background-color: rgb(56,85,114);*/
}
ul.tab-switcher__title li:hover{
    cursor: pointer;
}
ul.tab-switcher__content{
    padding-top: 32px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: scroll;
}
ul.tab-switcher__content>li:not(.active){
    display: none;
}


.page-1 .stu-list>li{
    padding: .3em;
    position: relative;
    padding: .5em 1em;
}
.page-1 .stu-list{
    padding: .5em 0;
}
.page-1 .stu-list>li:hover{
    background-color: rgba(50,50,50,.5);
}
.page-1 .right h1{
    padding: 1em 0;
    font-size: 1.2em;
    font-weight: normal;
    text-align: center;
    position: relative;
}
.course-introduce .button-group{
    display: flex;
    justify-content: space-around;
    margin-top: 1em;
}
#check-in{
    background-color: rgb(164,218,169);
    color: #555;
    padding: .3em 1em;
}
#check-in.done{
    background-color: gray;
    color: white;
}
#check-in:hover{
    cursor: pointer;
}

#edit-course{
    color: #749bc3;
    position: absolute;
    font-size: .8em;
    right: 1em;
    bottom: 1.125em;
}
.chat-area{
    height: 100%;
    position: relative;
    overflow: hidden;
}
.message-block{
    position: relative;
    height: 100%;
    width: 1000%;
    background-color: rgb(233,233,233);
    transition-property: right;
    transition-duration: .5s;
}
.person-message,.system-message{
    width: 250px;
    height: 100%;
    box-sizing: border-box;
    border-right: 1px solid gray;
    float: left;
    padding: 0 1em;
}
.person-message{
    color: #767676;
}
.system-message{
    color: #a2a2a2;
}
.person-message__info{
    padding: .5em 0;
}
.person-message__info .portrait{
    height: 2em;
    width: 2em;
    object-fit: contain;
    vertical-align: middle;
}
.person-message__info .name{
    vertical-align: middle;
}
.person-message__content{
    font-size: .9em;
}
.system-message__content{
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1.5;
}
.chat-area .arrow-left,.chat-area .arrow-right{
    position: absolute;
    top: 0;
    height: 100%;
    width: 30px;
    background-color: rgb(216,216,216);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
}
.chat-area .arrow-left{
    z-index: 1;
    left: 0;
    background-image: url("../image/arrow_left.png") ;
}
.chat-area .arrow-right{
    right: 0;
    background-image: url("../image/arrow_right.png") ;
}
/*小图标*/
.fn-remove,.fn-add{
    width: 1em;
    height: 1em;
    background-size: contain;
    position: absolute;
    right: 1em;
    top: calc(50% - .5em);
    opacity: 0;
    transition-duration: .2s;
    transition-property: opacity;
}
.page-1 .stu-list>li:hover .fn-add,.page-1 .stu-list>li:hover .fn-remove{
    cursor: pointer;
    opacity: 1;
}
.fn-remove{
    background-image: url("../image/icon_remove.png");
}
.fn-add{
    background-image: url("../image/icon_add.png");
}


/************************************************************/
/*                                                          */
/*                      媒体查询(放在最后)                     */
/*                                                          */
/************************************************************/
@media screen and (max-width: 793px){
    body{
        width: 793px;
    }
}
/*@media screen and (max-width: 480px){*/
    /*body{*/
        /*width: 100%;*/
    /*}*/
    /*nav>ul{*/
        /*flex-wrap: wrap;*/
    /*}*/
    /*nav>ul>li{*/
        /*flex-basis: 100%;*/
    /*}*/
/*}*/